package com.tiny.cqzcp.service.klb.impl;

import com.tiny.cqzcp.dao.klb.KlbTwoDao;
import com.tiny.cqzcp.dao.klb.KlbTwoInfoDao;
import com.tiny.cqzcp.pojo.klb.KlbTwo;
import com.tiny.cqzcp.pojo.klb.KlbTwoInfo;
import com.tiny.cqzcp.service.klb.KlbTwoService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("KlbTwoService")
public class KlbTwoServiceImpl implements KlbTwoService {
	

	private KlbTwoDao klbTwoDao;
	private KlbTwoInfoDao klbTwoInfoDao;

	@Autowired
	public KlbTwoServiceImpl(KlbTwoDao klbTwoDao,KlbTwoInfoDao klbTwoInfoDao){
		this.klbTwoDao = klbTwoDao;
		this.klbTwoInfoDao = klbTwoInfoDao;
	}

	@Override
	public int createTwoCombinationRecord() {
		return 0;
	}

	@Override
	public KlbTwo queryTwoRecordByNumbers(String numbers) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<KlbTwo> queryTwoAllRecords() {
		return klbTwoDao.selectAll();
	}

	@Override
	public int updateRecord(KlbTwo record) {
		return klbTwoDao.update(record);
	}

	@Override
	public List<KlbTwo> queryTwoByLimit(Integer start, Integer end) {
		return klbTwoDao.selectByLimit(start, end);
	}

	@Override
	public int insertInfoRecord(KlbTwoInfo record) {
		return klbTwoInfoDao.insert(record);
	}

	@Override
	public void batchUpdate(List<KlbTwo> nts) {
		klbTwoDao.batchUpdate(nts);
	}

	@Override
	public void batchInsertInfo(List<KlbTwoInfo> ntis) {
		klbTwoInfoDao.batchInsertInfo(ntis);
		
	}

	@Override
	public List<KlbTwo> queryTwoByTerm(String term) {
		return klbTwoDao.selectByTerm(term);
	}

}
